home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1994
/
MacHack 1994.toast
/
MacHack™94
/
Talks & Papers
/
Timothy Knox
/
yerk 3.66
/
Float source
/
fp.ld
< prev
next >
Wrap
Text File
|
1994-06-24
|
1KB
|
49 lines
\ Don't forget to use the latest FRONTEND and PATHLIST when compiling
+docs
0 -> interpret \ vector interpret to (intrp)
0 -> path
Forget @sarray
// ::Float source:fltMem
// ::Float source:fpCode
// ::Float source:fArgs
// ::Float source:fValue
\ a temporary fix for system 7.0.1's and 7.1's nasty habit of changing pack4 calls
\ What this does is save a pristine image of the floating point code
\ range that contains pack4 calls to a CODE resource of ID=5. StdSave
\ is redefined in frontend and will restore this code ontop of any
\ changes the system may have done at document save time. Likewise,
\ the install module will do the same if you are creating a standalone
\ application that might have corrupted code.
' f> -> 'f>
string data
new: data
: saveCode { \ codeHndl -- }
5 getres CODE -dup
IF call RmveResource THEN
'f> ' flt! over - put: data
data @ 'type CODE w 5 nullOsStr call addResource
5 getres CODE -> codeHndl
codeHndl w 16 call setResAttrs
codeHndl call ChangedResource
word0 call curResFile call UpdateResFile ;
saveCode forget data
// ::Float source:fpi/o
// ::Float source:fInterpret
// ::Float source:elCode
// ::Float source:fpExtra
// ::Float source:Float
// ::System source:PathList
// ::System source:FrontEnd
1 beep 1 beep 1 beep 1 beep
READFP
save yerkFP.com
Become yerk